package com.badger.spring.boot.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(tags = { "权限测试接口" })
public class TestController {

    @ApiOperation(value = "Test Role 权限")
    @GetMapping("/test")
    public String test() {
        return "Test Role 权限";
    }

    @ApiOperation(value = "Admin Authority 权限")
    @GetMapping("/admin")
    public String authority() {
        return "Admin Authority 权限";
    }
}
